	<h2>Boutique <a class="add-new-h2" href="<?php echo $CFG->config['base_url']?>shop/admin/new_shop">Ajouter</a></h2>


<ul class="subsubsub">
	<li class="all"><a class="current" href="<?php echo $CFG->config['base_url']?>shop/admin">Tous <span class="count">(<?php echo $total?>)</span></a> |</li>
	<li class="publish"><a href="<?php echo $CFG->config['base_url']?>shop/admin/index/status/publish">Activé <span class="count">(<?php echo $totalActive?>)</span></a></li>
</ul>
<form method="post" action="" id="posts-filter">

<p class="search-box">
  <input type="search" value="" name="s" id="post-search-input">
	<input type="submit" value="Chercher Annonce" class="button" id="search-submit" name="">
</p>
<div class="tablenav top">

		<div class="alignleft actions">
			<select name="action">
				<option selected="selected" value="0">Actions Groupées</option>
				<option class="hide-if-no-js" value="edit">Modifier</option>
				<option value="trash">Déplacer dans la Corbeille</option>
			</select>

		</div>
		<div class="alignleft actions">
			<select name="filter[date]">
				<option value="0" selected="selected">Toutes Dates</option>
				<?php 
				foreach($option_filter_date as $list){
					$s=$list->YearMonth==$filter['date']?' selected ' : '';
					echo "<option value='{$list->YearMonth}' $s>{$list->month} - {$list->year}</option>";
				}
				?>
			</select>
			<select class="postform" id="cat" name="filter[category]">
				<option value="" >Categorie</option>
					<?php echo $option_filter_category?>
			</select>
			<input type="submit" value="Filtrer" class="button" id="post-query-submit">
		</div>

<div class="tablenav-pages one-page"><span class="displaying-num"><?php echo $totalActive?> produits</span>
<span class="pagination-links"><a href="http://localhost/wordpress/wp-admin/edit.php" title="Go to the first page" class="first-page disabled">Â«</a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the previous page" class="prev-page disabled"> < </a>
<span class="paging-input"><input type="text" size="1" value="1" name="paged" title="Current page" class="current-page"> of <span class="total-pages">1</span></span>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the next page" class="next-page disabled">></a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the last page" class="last-page disabled"> >> </a></span>
</div>


		<br class="clear">
	</div>
	
			
<script type="text/javascript">
	function sort($nameCol,$this){
		$input=$this.next("input");
		$typeOfSort=$input.val();
		
		if($typeOfSort=='desc')$typeOfSort='asc';
		else $typeOfSort='desc';
		$input.attr('name','sort['+$nameCol+']');
		$input.val($typeOfSort);
		$('#posts-filter').submit();
	}
</script>

<table class="wp-list-table widefat fixed posts">
	<thead>
	<tr>
		<th class="manage-column column-cb check-column shoptout" id="Tout" scope="col">
		<label for="cb-select-all-1" class="screen-reader-text"> Tout</label>
		<input type="checkbox" id="cb-select-all-1"/>
		</th>
		<th class="manage-column column-shoplogo">Logo</th>
		<th class="manage-column column-title sortable desc" id="Titre" scope="col">
		<a href="#" onclick="sort('company_name')"><span>Société & Texte</span><span class="sorting-indicator"></span></a>
		<input type="hidden" value="<?php echo $sort['company_name']?>" name="sort[company_name]" />
		</th>
		<th class="manage-column column-shopcategories"   scope="col">Categories</th>
		<th class="manage-column column-shopinformation"   scope="col">Information</th>
		<th class="manage-column column-shopvalider"  scope="col">V</th>
        <th class="manage-column column-shopcreation"  scope="col">Date Créa</th>
        <th class="manage-column column-shopdepartement"  scope="col">Adresse &amp; CP</th>
        <th class="manage-column column-shopvue num sortable desc "   scope="col">
			<a href="#" onclick="sort('shop_counter',$(this))">
				<span>Vues</span>
				<span class="sorting-indicator"></span>
			</a>
			<input type="hidden" value="<?php echo $sort['shop_counter']?>" name="sort[shop_counter]" />
		</th>
		<th class="manage-column column-annoncepropar" scope="col">Ann°</span><span class="sorting-indicator"></span></a></th>
        <th class="manage-column column-annoncemontant"  scope="col">total</span><span class="sorting-indicator"></span></a></th>
       </tr>
	</thead>

	<tfoot>
	<tr>
		<th class="manage-column column-cb check-column shoptout" id="Tout" scope="col">
		<label for="cb-select-all-1" class="screen-reader-text"> Tout</label>
		<input type="checkbox" id="cb-select-all-1"/>
		</th>
		<th class="manage-column column-shoplogo">Logo</th>
		<th class="manage-column column-title sortable desc" id="Titre" scope="col">
		<a href="#" onclick="sort('company_name')"><span>Société & Texte</span><span class="sorting-indicator"></span></a>
		<input type="hidden" value="<?php echo $sort['company_name']?>" name="sort[company_name]" />
		</th>
		<th class="manage-column column-shopcategories"   scope="col">Categories</th>
		<th class="manage-column column-shopinformation"   scope="col">Information</th>
		<th class="manage-column column-shopvalider"  scope="col">V</th>
        <th class="manage-column column-shopcreation"  scope="col">Date Créa</th>
        <th class="manage-column column-shopdepartement"  scope="col">Adresse &amp; CP</th>
        <th class="manage-column column-shopvue num sortable desc "   scope="col">
			<a href="#" onclick="sort('shop_counter',$(this))">
				<span>Vues</span>
				<span class="sorting-indicator"></span>
			</a>
			<input type="hidden" value="<?php echo $sort['shop_counter']?>" name="sort[shop_counter]" />
		</th>
		<th class="manage-column column-annoncepropar" scope="col">Ann°</span><span class="sorting-indicator"></span></a></th>
        <th class="manage-column column-annoncemontant"  scope="col">total</span><span class="sorting-indicator"></span></a></th>
       </tr>
	</tfoot>

	<tbody id="the-list">
	<?php 
	if(!empty($listAllProducts))
		foreach ($listAllProducts as $shop){

	?>
		<tr valign="top" class="post type-post status-publish format-image hentry" id="post-<?php echo $shop->id?>">
			<th class="check-shopcolumn" scope="row">
				<label for="cb-select-14" class="screen-reader-text">Selectionner produit</label>
				<input type="checkbox" value="<?php echo $shop->id?>" name="post[]" id="cb-select-<?php echo $shop->id?>">
			</th>
			<td class="photo column-shoplogo"><img height="50" src="<?php echo $CFG->config['base_url']?>images/logos/thumbnails/<?php echo $shop->logo?>"/></td>
			<td class="post-title page-title column-title">
				<strong><a title="Modifier <?php echo $shop->company_name?>" href="<?php echo $CFG->config['base_url']?>shop/admin/edit/<?php echo $shop->id?>" class="row-title"><?php echo $shop->company_name?></a>
				</strong>
				<div class="lignes" id="lignes">
                 <?php echo $shop->description?> 
                </div>
				<div class="row-actions">
					<span class="edit"><a title="Modifier Produit" href="<?php echo $CFG->config['base_url']?>shop/admin/edit/<?php echo $shop->id?>">Modifier</a> | </span>
					<?php 
					$active=$shop->shop_active?'deactive':'reactive';
					$activeShow=$shop->shop_active?'Déactiver':'reactiver';
					?>
					<span class="trash"><a href="<?php echo $CFG->config['base_url']?>shop/admin/<?php echo $active.'/'.$shop->id?>" title="placer dans le corbeille" class="submitdelete"><?php echo $activeShow?></a> | </span>
					<span class="view"><a rel="permalink" title="Voir <?php echo $shop->company_name?>" href="<?php echo $CFG->config['base_url'].'boutique/'.$shop->shop_link?>.html">Apperçu</a></span>
				</div>
			</td>
			<td class="categories column-shopcategories"><?php echo $shop->category_name?></td>
			<td class="column-shopinformation"><strong><?php echo $shop->frist_name?></strong> <strong><?php echo $shop->last_name?></strong><br />
			<a href="<?php echo $shop->site?>"><?php echo $shop->company_name?></a><br/>
			<strong><?php echo $shop->email?></strong>
			
			</td>
		  <td class="column-shopvaliderpng">
		  		<?php echo $shop->shop_active?
					' <div class="valideroui"> </div>':
		  			' <div class="validernon"> </div>';?>
		  	</td>
			<td class="manage-column column-shopcreation" scope="col"><strong><?php echo date('d/m/Y',$shop->date_create)?></strong><br/>
		    </td>
			<td class="comments column-shopcomments">
				<?php echo $shop->siren?><br/>
				<?php echo $shop->adresse?><br/>
				 <div id="cp" class="cp" title="<?php echo $shop->ville?>"><?php echo $shop->code_postal?> - <?php echo $shop->ville?></div>
			</td>
            <td class="manage-column column-date sortable shopasc"><?php echo $shop->shop_counter?></td>
			<td class="date column-shopdate"><?php echo $shop->num_product?></td>
          <td class="manage-column column-shopmontant sortable asc "><?php echo $shop->total?></td>
		</tr>
		<?php }?>
	</tbody>
</table>
	<div class="tablenav bottom">

		<div class="alignleft actions">
			<select name="action2">
<option selected="selected" value="-1">Trier en vrac</option>
	<option class="hide-if-no-js" value="edit">Editer</option>
	<option value="trash">Mettre à la corbeille</option>
</select>
<input type="submit" value="Appliquer" class="button action" id="doaction2" name="">
		</div>
		<div class="alignleft actions">
		</div>
<div class="tablenav-pages one-page"><span class="displaying-num">2 items</span>
<span class="pagination-links"><a href="http://localhost/wordpress/wp-admin/edit.php" title="Go to the first page" class="first-page disabled"> « </a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the previous page" class="prev-page disabled">â€¹</a>
<span class="paging-input">1 of <span class="total-pages">1</span></span>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the next page" class="next-page disabled"> < </a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the last page" class="last-page disabled">»</a></span></div>
		<br class="clear">
	</div>

</form>


<div id="ajax-response"></div>
<br class="clear"/>
</div>


<div class="clear"></div>